//@import './variables.scss';
@import "./transition.scss";

/*!*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*!*/
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  background-color: #ccc;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #3482f4;
  opacity: 0.1;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Microsoft YaHei", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  background-color: #ffffff;
  padding: 15px;
  min-height: calc(100vh - 114px - 30px);
}
//.drawer-content{
//  width: 100%;
//  padding: 15px;
//  display: flex;
//  flex-direction: column;
//  justify-content: center;
//  align-items: center;
//}
.drawer-main {
  position: relative;
  height: 100%;
  padding-bottom: 100px;
  overflow: hidden;
  overflow-y: auto;
}
.drawer-footer {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  .el-button {
    flex: 1;
  }
}

.components-container {
  margin: 30px 20px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: rgba(#3482f4, 0.52);
  cursor: pointer;

  &:hover {
    color: #3482f4;
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//下拉树
.vue-treeselect__control {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vue-treeselect__control-arrow {
  color: #000;
}

.vue-treeselect__placeholder {
  color: #999;
}

.vue-treeselect__x-container {
  color: #333;
}

.vue-treeselect__x-container:hover {
  color: #999;
}

.vue-treeselect__multi-value-item:hover .vue-treeselect__value-remove {
  color: gray;
}

.vue-treeselect:not(.vue-treeselect--disabled):not(.vue-treeselect--focused)
  .vue-treeselect__control:hover {
  border-color: #3482f4;
}

.vue-treeselect:not(.vue-treeselect--disabled)
  .vue-treeselect__multi-value-item:not(
    .vue-treeselect__multi-value-item-disabled
  ):hover,
.vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-new)
  .vue-treeselect__multi-value-item:not(
    .vue-treeselect__multi-value-item-new
  ):hover {
  cursor: pointer;
  color: #000;
}

.vue-treeselect--focused:not(.vue-treeselect--open) .vue-treeselect__control {
  border-color: #000;
}

.vue-treeselect--open .vue-treeselect__control {
  border: 1px solid #3482f4;
}

.vue-treeselect--focused.vue-treeselect--searchable
  .vue-treeselect__single-value {
  color: rgba(#3482f4, 0.82);
}

.vue-treeselect__multi-value-item {
  background: #3482f4;
  color: #3482f4;
}

.vue-treeselect__option {
  padding-top: 5px;
  padding-bottom: 5px;
}

.vue-treeselect__menu {
  border: 1px solid rgba(#3482f4, 0.15);
  background: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
}

.vue-treeselect--open-below .vue-treeselect__menu {
  top: 6px;
  border-top-color: rgba(#3482f4, 0.15);
}

.vue-treeselect--open-above .vue-treeselect__menu {
  bottom: 6px;
  border-bottom-color: rgba(#3482f4, 0.15);
}

.vue-treeselect__option--highlight {
  background: #000;
  color: #3482f4;
}

.vue-treeselect--single .vue-treeselect__option--selected {
  background: #000;
  color: #3482f4;
}

.vue-treeselect--single .vue-treeselect__option--selected:hover {
  background: #3482f4;
}

.vue-treeselect__option-arrow-container:hover .vue-treeselect__option-arrow,
.vue-treeselect--branch-nodes-disabled
  .vue-treeselect__option:hover
  .vue-treeselect__option-arrow {
  color: #3482f4;
}

.vue-treeselect__label-container {
  color: rgba(#3482f4, 0.82);
}

// highjs
.hljs {
  background-color: inherit !important;
}
